package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CPatentinfoDao;
import gov.ccswj.modules.ccbusiness.entity.CPatentinfoEntity;
import gov.ccswj.modules.ccbusiness.service.CPatentinfoService;



@Service("cPatentinfoService")
public class CPatentinfoServiceImpl implements CPatentinfoService {
	@Autowired
	private CPatentinfoDao cPatentinfoDao;
	
	@Override
	public CPatentinfoEntity queryObject(Integer id){
		return cPatentinfoDao.queryObject(id);
	}
	
	@Override
	public List<CPatentinfoEntity> queryList(Map<String, Object> map){
		return cPatentinfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cPatentinfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CPatentinfoEntity cPatentinfo){
		cPatentinfoDao.save(cPatentinfo);
	}
	
	@Override
	public void update(CPatentinfoEntity cPatentinfo){
		cPatentinfoDao.update(cPatentinfo);
	}
	
	@Override
	public void delete(Integer id){
		cPatentinfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cPatentinfoDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cPatentinfoDao.delete(entname);
		
	}
}
